package com.atguigu07._abstract.ex2;

abstract public class Employee {
    private String name;
    private int number;
    private MyDate date;
   // private int salary;


    public Employee() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public MyDate getDate() {
        return date;
    }

    public void setDate(MyDate date) {
        this.date = date;
    }

    public Employee(String name, int number, MyDate date) {
        this.name = name;
        this.number = number;
        this.date = date;
    }

    public abstract int earning(int mon);

    @Override
    public String toString() {
        return "Employee{" +
                "name='" + name + '\'' +
                ", number=" + number +
                ", date=" + date.printBirth() +
                '}';
    }
}
